<template>
<div>welcome页  +{{msg}}</div>
<el-button @click="login">登陆页</el-button>
</template>
<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const login = ()=>{
  router.push('/login')
}
defineProps({
  msg:String
})
</script>